//
//  YDLScrollView.h
//  ScrollViewDemo
//
//  Created by liuyan on 2017/8/25.
//  Copyright © 2017年 liuyan.com. All rights reserved.
//

#import <UIKit/UIKit.h>

/** 设置代理 */
@protocol YDLScrollViewDelegate <NSObject>

-(void)didSelectPicWithIndexPath:(NSInteger)index;
@end


@interface YDLScrollView : UIView
@property (nonatomic, assign) id<YDLScrollViewDelegate> delegate;

/**
 初始化
 @param frame view 大小
 @param distance 设置Scroll距离View两侧距离
 @param gap 设置Scroll内部 图片间距
 @return self
 */
- (instancetype)initWithFrame:(CGRect)frame withDistanceForScroll:(float)distance withGap:(float)gap;

/** 滚动视图数据 */
-(void)ydlScrollView:(NSArray *)dataArr;





@end
